<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="">
    <meta http-equiv="x-dns-prefetch-control" content="on">

    <title>修改价格</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css">
    <script src="../../js/jquery-v1.11.2.min.js"></script>
    <script src="../../js/driver.js"></script>
    <script src="../../js/common.js"></script>
</head>
<body>
<form id="dataForm">
    <section class="itemgroup p15 mt10">
        <div class="inputarea">
            <label class="inputnamebig">搬运费(元)</label>
            <label class="inputformbig">
                <i class="iconfont wipe">&#xe614;</i>
                <input class="formstyle w100" type="text" placeholder="请输入价格" id="specialFee" name="specialFee"/>
            </label>
        </div>
        <div class="inputarea">
            <label class="inputnamebig">路桥费(元)</label>
            <label class="inputformbig">
                <i class="iconfont wipe">&#xe614;</i>
                <input class="formstyle w100" type="text" placeholder="请输入价格" id="hignRoadFee" name="hignRoadFee"/>
            </label>
        </div>
    </section>
    <section class="bottomarea">
        <input id="driverWaybillId" name="waybillId" type="hidden">
        <button class="btn bottomone2btn left" type="button" onclick="gotoOkBidSure()">确定</button>
        <button class="btnkuang_bl bottomone2btn right" type="button" onclick="gotoOkBidCancel()">取消</button>
    </section>
</form>
<script>

    $(document).ready(function () {
        $("#driverWaybillId").val(getCookie("driverWaybillId"));
        $("#hignRoadFee").val(getCookie('driverHignRoadFee'));
        $("#specialFee").val(getCookie('driverSpecialFee'));
    });
    function gotoOkBidCancel() {
        window.location.href = "./ok_bid.html?waybillId=" + $("#driverWaybillId").val();
    }

    function gotoOkBidSure() {
        setCookie('hignRoadFee', $("#hignRoadFee").html());
        setCookie('specialFee', $("#specialFee").html());

        var url = _global.serverHost + "/driver/change_price.htm?driverUuid=" + getCookie("driverUuid");
        var data = $("#dataForm").serialize();
        _callAjaxRequest(url, data, goonBid1Back);
    }

    function goonBid1Back(data) {
        if (data.code == "1") {
            window.location.href = "../start_bid/ok_bid.html?waybillId=" + $("#driverWaybillId").val();
        } else {
            alert(data.message);
        }
    }
</script>
</body>
</html>